//代课下单
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//list
export function appraiseManageList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/appraiseManage/list`,
    method: "get",
    params
  });
}
//主体信息
export function enterpriseBodyList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/enterpriseBody/list`,
    method: "get",
    params
  });
}
//收货地址/收票地址
export function receivingAddressList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/receivingAddress/list`,
    method: "get",
    params
  });
}
//收货地址/收票地址详情
export function receivingAddressDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/receivingAddress/detail`,
    method: "get",
    params
  });
}
//创建收货地址/收票地址
export function createMemberAddress(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/receivingAddress/createMemberAddress`,
    method: "post",
    data
  });
}
//发票信息
export function invoiceInfoList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/invoiceInfo/list`,
    method: "get",
    params
  });
}
//获取结算信息
export function getOrderSettlementInfo(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/order/getOrderSettlementInfo`,
    method: "post",
    data
  });
}
//代客下单
export function surrogateCreateOrder(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/order/surrogateCreateOrder`,
    method: "post",
    data
  });
}
